package org.example.judge_contest.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.judge_common.hander.RetrunMsgException;
import org.example.judge_pojo.ContestProblem;

import java.io.Serializable;
import java.util.List;

public interface ContestProblemService extends IService<ContestProblem> {
    List<ContestProblem> listByContestId(String id);

    boolean removeByContestId(Serializable contestId);

    ContestProblem getByContestAndProblem(String contestId, String problemId);

    boolean save(List<ContestProblem> contestProblem) throws RetrunMsgException;
}
